<template>
    <div class="header">
      <div @click="goback">
        <!-- <svg-icon icon-class="icon_back" /> -->
				 <img class="imgIcon" src="~/static/images/top_icon_back1.png" />
      </div>
      <h2>{{contentTitle}}</h2>
      <div @click="goto(jumpRoute)">
        <span>{{rightText}}</span>
      </div>
    </div>
</template>

<script>
  export default {
    props: {		
		 rightText: String,
     jumpRoute: String,
     contentTitle: String
    },
    methods: {
      goback() {
        // 返回上一步
        this.goto('tealogin')
      },
      goto(routerName, queryData) {
				this.$router.push({
					path: routerName,
					query: {
						type: queryData
					}
				});
			},
    },
  }
</script>

<style lang="less" scoped>
  .header {
		width: 100%;
		height: 0.88rem;
		text-align: right;
		padding: 0 0.3rem;
		background: transparent;
    font-size: 0.3rem;
    letter-spacing: 0.05rem;
		color: #FFF;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
		.imgIcon{
			width: 0.4rem;
			height: 0.4rem;
    }
    h2 {
      font-size: 0.36rem;
      font-weight:bold;
		}
	}
</style>

